package com.sunbird.crm.contorller;

import com.sunbird.crm.base.aspect.AopLog;
import com.sunbird.crm.base.utils.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName HelloTest
 * @Descriptiom 页面跳转
 * @Author Sunbird
 * @Date 2019/8/16 19:14
 * @Version 1.0
 **/
@Controller
public class HelloTest {

    @Autowired
    RedisUtils redisUtils ;
    private Integer count =0;

    @RequestMapping("/")
    public String hello(){
        redisUtils.set("登陆"+count,""+count);
        count++;
        return  "loginx";
    }

    @RequestMapping("user")
    public String user(){
        return  "page/user/index";
    }

    @RequestMapping("login")
    public String loginx(){
        return "loginx";
    }


}
